package RadianceM.DistributionSystem.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Schema(
        name = "Room",
        title = "房间表",
        description = ""
)
@TableName(value = "dorm_room")
public class Room {

    @Schema(title = "房间id", description = "")
    @TableId(value = "room_id")
    private Long id;

    @Schema(title = "楼层id", description = "")
    @TableField(value = "dorm_storey_id")
    private Long dormStoreyId;

    @Schema(title = "平面图id", description = "")
    @TableField(value = "plane_id")
    private Long planeId;

    @Schema(title = "房间名称", description = "")
    @TableField(value = "room_name")
    private String name;
}
